-- GENERATED SPELL FOR [Haunted Servitor] --


function spell0_3875(pUnit, Event) --@Haunting Spirits,n/a--
pUnit:FullCastSpellOnTarget(7057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3875', 2000, 1)
end

function Sorts_3875(pUnit, Event)
local choix_sorts_3875 = math.random(0, 0)
if choix_sorts_3875 == 0 then
pUnit:RegisterEvent('spell0_3875', 1, 1)
end
end

function mob3875_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3875', math.random(1500, 3000), 1)
end

function mob3875_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3875_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3875_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3875, 1, 'mob3875_Action')
RegisterUnitEvent(3875, 2, 'mob3875_Leave')
RegisterUnitEvent(3875, 3, 'mob3875_Kill')
RegisterUnitEvent(3875, 4, 'mob3875_Die')
